package com.easy.service;

import com.easy.bean.Detail;
import com.easy.util.Page;

import java.util.List;

public interface IDetailService {
    int addDeliveryDetail(Detail detail);
    int addReceiptDetail(Detail detail);

    int delDeliveryDetail(int id);
    int delReceiptDetail(int id);

    Detail getDeliveryDetailByID(int id);
    Detail getReceiptDetailByID(int id);

    List<Detail> getDeliveryDetail(Detail detail, Page page);
    List<Detail> getReceiptDetail(Detail detail, Page page);

    int getDeliveryCount(Detail detail);
    int getReceiptCount(Detail detail);

}
